package chai.ning.methods;

import java.io.PrintStream;

public class Person
{
  public String name;
  public int age;
  public char gender;
  public boolean married;

  public Person(String name, int age, char gender, boolean married)
  {
    System.out.println("没有别的意思，就是证明我执行了");
    this.name = name;
    this.age = age;
    this.gender = gender;
    this.married = married;
  }

  public void introduce()
  {
    System.out.println(this.name + " , " + this.age + " , " + this.gender + " , " + this.married);
  }

  public static void main(String[] args)
  {
    Person p = new Person("佟某", 18, '女', false);
    System.out.println(p);
    System.out.println(System.identityHashCode(p));

    p.introduce();
  }
}